import {
    Popup,
    Cell,
    Tab,
    Tabs,
    Search,
    Image as VanImage,
    PullRefresh,
    Skeleton,
    Swipe,
    SwipeItem,
    Button,
    Checkbox,
    CheckboxGroup,
    Field,
} from 'vant'

const vantComponents = [
    Popup,
    Cell,
    Tab,
    Tabs,
    Search,
    VanImage,
    PullRefresh,
    Skeleton,
    Swipe,
    SwipeItem,
    Button,
    Checkbox,
    CheckboxGroup,
    Field,
]

export default {
    install(Vue) {
        vantComponents.forEach(Component => {
            Vue.use(Component)
        })
    }
}